package src.main.chouxianggongchang.cat_factory_impl;

import src.main.chouxianggongchang.ZoonAbstractMain;
import src.main.chouxianggongchang.ZoonCanFactory;
import src.main.chouxianggongchang.extends_abstract.CatJuEntity;
import src.main.chouxianggongchang.extends_abstract.DogHaEntity;

/**老赵家工厂*/
public class LaoZhaoFactory implements ZoonCanFactory {
    @Override
    public ZoonAbstractMain catCan() {
        System.out.println("老赵家猫罐头");
        return new CatJuEntity();
    }

    @Override
    public ZoonAbstractMain dogCan() {
        System.out.println("老赵家狗罐头");
        return new DogHaEntity();
    }
}
